/* ATC Pest Control - Thermification Landing Page Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --primary-dark: #1A1A2E;
    --accent-red: #E63946;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --success-green: #2ECC71;
    --warning-yellow: #F39C12;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #16213E 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff08"/></svg>');
    background-size: 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #B8C5D6;
    margin-bottom: 30px;
}

.hero-tagline {
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Call Button */
.call-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.call-button svg {
    width: 24px;
    height: 24px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-red));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* What is Thermification Section */
.thermification {
    background: var(--light-bg);
}

.thermification-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.thermification-text h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list .icon {
    width: 24px;
    height: 24px;
    color: var(--success-green);
    flex-shrink: 0;
}

.thermification-image {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.thermification-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.thermification-image-placeholder {
    text-align: center;
    color: var(--white);
}

.thermification-image-placeholder svg {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

/* Why Choose ATC Section */
.why-choose {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.benefit-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Process Section */
.process {
    background: var(--primary-dark);
    color: var(--white);
}

.process .section-title h2 {
    color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-red));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.step p {
    color: #B8C5D6;
    font-size: 0.95rem;
}

/* Comparison Section */
.comparison {
    background: var(--light-bg);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
}

.comparison-header div {
    padding: 20px;
    text-align: center;
}

.comparison-header .thermification-col {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #E9ECEF;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row div {
    padding: 18px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row .feature-name {
    justify-content: flex-start;
    font-weight: 500;
}

.comparison-row .thermification-col {
    background: #FFF5F0;
    color: var(--success-green);
    font-weight: 600;
}

.comparison-row .traditional-col {
    color: var(--accent-red);
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: linear-gradient(135deg, #E9ECEF 0%, #DEE2E6 100%);
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.gallery-placeholder svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Video Section */
.video-section {
    background: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-placeholder {
    background: var(--primary-dark);
    border-radius: 20px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.2) 0%, rgba(230,57,70,0.2) 100%);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--white);
    margin-left: 5px;
}

.video-title {
    text-align: center;
    margin-top: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.stars {
    color: var(--warning-yellow);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #16213E 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: #B8C5D6;
    margin-bottom: 40px;
}

.cta-tagline {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 30px;
}

/* =============================================
   CHATBOT STYLES
   ============================================= */

/* Floating Chat Button */
.chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-bubble-hint {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 20px 20px 4px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
    animation: bounceIn 0.5s ease 1s both;
}

.chat-toggle-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.55);
}

.chat-toggle-btn svg {
    width: 30px;
    height: 30px;
    color: white;
    transition: all 0.3s ease;
}

.chat-toggle-btn .icon-close {
    display: none;
}

.chat-toggle-btn.active .icon-chat {
    display: none;
}

.chat-toggle-btn.active .icon-close {
    display: block;
}

.chat-notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #2ECC71;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 420px;
    max-height: 620px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #16213E 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 24px 24px 0 0;
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-avatar svg {
    width: 22px;
    height: 22px;
    color: white;
}

.chat-header-info {
    flex: 1;
}

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

.chat-header-info span {
    color: #2ECC71;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header-info span::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #2ECC71;
    border-radius: 50%;
    display: inline-block;
}

.chat-header-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-header-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-header-close svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Suggested Prompts */
.chat-prompts {
    padding: 12px 14px 4px;
    background: #FAFAFA;
    border-bottom: 1px solid #F0F0F0;
}

.chat-prompts-label {
    font-size: 0.72rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.prompts-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.prompts-scroll::-webkit-scrollbar {
    display: none;
}

.prompt-chip {
    background: white;
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--primary-dark);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.prompt-chip:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: translateY(-1px);
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    max-height: 340px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #E0E0E0;
    border-radius: 4px;
}

/* Message Bubbles */
.msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 90%;
}

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

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

.msg-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-avatar svg {
    width: 14px;
    height: 14px;
    color: white;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 100%;
}

.msg.bot .msg-bubble {
    background: #F3F4F6;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.msg.user .msg-bubble {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-red));
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-bubble ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.msg-bubble ul li {
    margin-bottom: 3px;
}

.msg-bubble strong {
    display: block;
    margin-bottom: 4px;
}

.msg-bubble img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.msg-bubble em {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    align-self: flex-start;
}

.typing-dots {
    background: #F3F4F6;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: #B0B0B0;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Input */
.chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid #F0F0F0;
    background: white;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1.5px solid #E5E7EB;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: none;
    line-height: 1.4;
    max-height: 80px;
    min-height: 40px;
}

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

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-red));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* Disclaimer */
.chat-disclaimer {
    padding: 6px 14px 10px;
    font-size: 0.7rem;
    color: #AAA;
    text-align: center;
    line-height: 1.4;
}

/* Animations */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Mobile chat */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        max-height: 80vh;
    }

    .chat-launcher {
        right: 16px;
        bottom: 16px;
    }
}

/* Footer */
footer {
    background: #0D0D1A;
    color: #6B7280;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .thermification-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-header div,
    .comparison-row div {
        padding: 12px 10px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .call-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}