/* timberhaus Landing Page Styles */
/* Earthy Palette: #2d5a3d (green), #5c4033 (brown), #f5f5dc (cream), #e67e22 (orange) */

:root {
    --th-green: #2d5a3d;
    --th-brown: #5c4033;
    --th-cream: #f5f5dc;
    --th-orange: #e67e22;
    --th-light-brown: #8b7355;
    --th-dark-green: #1a3d25;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--th-brown);
    background-color: #fff;
}

.th-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.th-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.th-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.th-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.th-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--th-green);
    text-decoration: none;
}

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

.th-nav a {
    color: var(--th-brown);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.th-nav a:hover {
    color: var(--th-green);
}

.th-header-phone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.th-header-phone a {
    color: var(--th-brown);
    text-decoration: none;
    font-weight: 500;
}

.th-whatsapp {
    color: #25D366;
    text-decoration: none;
}

.th-whatsapp:hover {
    color: #122c3a;
}

/* Hero Section */
.th-hero {
    background: linear-gradient(rgba(39, 90, 59, 0.8), rgba(39, 90, 59, 0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.th-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.th-hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.th-cta-button {
    display: inline-block;
    background: var(--th-orange);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
}

.th-cta-button:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Benefits Section */
.th-benefits {
    padding: 80px 0;
    background: var(--th-cream);
}

.th-section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--th-green);
}

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

.th-benefit-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.th-benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--th-orange);
}

.th-benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--th-green);
}

/* Projects Section */
.th-projects {
    padding: 80px 0;
}

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

.th-project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.th-project-card:hover {
    transform: translateY(-5px);
}

.th-project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.th-project-info {
    padding: 20px;
}

.th-project-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--th-green);
}

.th-project-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--th-orange);
    margin-bottom: 15px;
}

.th-project-link {
    color: var(--th-green);
    text-decoration: none;
    font-weight: 500;
}

.th-project-link:hover {
    text-decoration: underline;
}

/* Technology Section */
.th-technology {
    padding: 80px 0;
    background: var(--th-cream);
}

.th-tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.th-tech-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.th-tech-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--th-green);
}

.th-tech-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Contact Section */
.th-contact {
    padding: 80px 0;
}

.th-contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.th-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.th-form-group input:focus {
    border-color: var(--th-green);
    outline: none;
}

.th-form-consent {
    font-size: 14px;
    color: var(--th-brown);
}

.th-form-consent a {
    color: var(--th-green);
}

.th-submit-button {
    background: var(--th-orange);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.th-submit-button:hover {
    background: #d35400;
}

/* Footer */
.th-footer {
    background: var(--th-green);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.th-footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.th-footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* Scroll to Top */
.th-scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--th-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}

.th-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* AI Widget Styles */
.th-ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.th-widget-toggle {
    width: 60px;
    height: 60px;
    background: var(--th-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.th-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.th-widget-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
}

.th-widget-panel.active {
    display: flex;
}

.th-widget-header {
    background: var(--th-green);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.th-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.th-widget-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.th-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.th-message.bot {
    justify-content: flex-start;
}

.th-message.user {
    justify-content: flex-end;
}

.th-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.th-message.bot .th-message-content {
    background: var(--th-cream);
    color: var(--th-brown);
}

.th-message.user .th-message-content {
    background: var(--th-green);
    color: white;
}

.th-typing-indicator {
    display: inline-block;
}

.th-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--th-green);
    border-radius: 50%;
    animation: th-bounce 1.4s infinite ease-in-out;
}

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

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

.th-widget-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.th-widget-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.th-widget-input button {
    width: 40px;
    height: 40px;
    background: var(--th-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .th-hero h1 { font-size: 32px; }
    .th-hero-subtitle { font-size: 16px; }
    .th-section-title { font-size: 28px; }
    .th-tech-content { grid-template-columns: 1fr; }
    .th-projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .th-widget-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}