/* Global Resets and Variables */
:root {
    --primary-red: #7F0E15; /* Extracted from Logo */
    --primary-red-hover: #5e080e;
    --bg-cream: #FDFBF7;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --border-color: #E2DDD5;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: rgba(0,0,0,0.03);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(127, 14, 21, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(127, 14, 21, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 24px;
}
.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    background-color: var(--bg-cream);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-red);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: url('../assets/hero_bg.png') no-repeat center center / cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 251, 247, 0.82);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Tahoma', sans-serif;
    font-weight: 700;
}

.hero-tagline {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    background-color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127,14,21,0.08) 0%, rgba(253,251,247,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.align-center { align-items: center; }

/* Cards */
.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* Features */
.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-red);
    background: rgba(127, 14, 21, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA */
.cta {
    background-color: var(--primary-red);
    color: var(--white);
}

.cta h2, .cta p {
    color: var(--white);
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary-red);
    margin-top: 1.5rem;
}

.cta .btn:hover {
    background-color: var(--bg-cream);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 80px 0 20px;
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: #ccc;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

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

/* Map Section */
.map-section {
    padding: 60px 0 0;
    background: var(--bg-cream);
}
.map-wrapper {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(127,14,21,0.1);
}

/* Inner Pages Hero */
.page-hero {
    background-color: var(--primary-red);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}
.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-footer { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
    }
    .nav-links.active {
        left: 0;
    }
    .hamburger { display: block; }
    .grid-3 { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .section { padding: 50px 0; }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-left {
    left: 30px;
}
.fab-right {
    right: 30px;
}
.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-decoration: none !important;
    line-height: 1;
}
.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--white);
}
.fab-whatsapp {
    background-color: #25D366;
}
.fab-whatsapp:hover {
    background-color: #1ebe57;
}
.fab-call {
    background-color: var(--primary-red);
}
.fab-call:hover {
    background-color: var(--primary-red-hover);
}
.fab-ai {
    background-color: #1A1A1A;
}
.fab-ai:hover {
    background-color: #333333;
}

/* ── Chatbot ──────────────────────────────────────────────────────────────── */
.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 1050;
    display: none;
    flex-direction: column;
    font-family: var(--font-main);
    pointer-events: auto;
}
.chatbot-header {
    background: var(--primary-red);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}
.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;
    flex-shrink: 0;
}
.chatbot-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}
.chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    opacity: 0.9;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot-header > i {
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.chatbot-header > i:hover { opacity: 1; }

.chatbot-body {
    padding: 16px;
    height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    pointer-events: auto;
}
.chatbot-body::-webkit-scrollbar { width: 4px; }
.chatbot-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Message bubbles */
.chatbot-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}
.chatbot-message.bot {
    background: #fff;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.chatbot-message.user {
    background: var(--primary-red);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* Typing indicator */
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: #aaa;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Quick reply chips */
.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.quick-reply {
    background: #fff;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
.quick-reply:hover, .quick-reply:active {
    background: var(--primary-red);
    color: #fff;
}

/* Input area */
.chatbot-input {
    display: flex;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}
.chatbot-input input {
    flex: 1;
    border: none;
    padding: 13px 16px;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    background: transparent;
}
.chatbot-input button {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}
.chatbot-input button:hover { background: var(--primary-red-hover); }

/* Responsive FAB & Chatbot */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
        z-index: 1001;
    }
    .fab-container {
        bottom: 20px;
    }
    .fab-left {
        left: 20px;
    }
    .fab-right {
        right: 20px;
    }
    .fab {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.modal-header {
    background: var(--primary-red);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { margin: 0; color: var(--white); }
.modal-header i { cursor: pointer; font-size: 1.2rem; }
.modal-body { padding: 30px; }

.fab {
    text-decoration: none !important;
}
