:root {
    --bg: #f0cd9f;
    --surface: #e2caa9;
    --surface-2: #aa8869;
    --text: #352924;
    --muted: #725f55;
    --primary: #cf5631;
    --primary-dark: #8f381e;
    --secondary: #7f9a7f;
    --accent: #e59f83;
    --border: #decab8;
    --shadow: 0 14px 32px rgba(73, 51, 39, 0.12);
    --font-heading: "Playfair Display", serif;
    --font-body: "DM Sans", sans-serif;
    --container-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-gradient { color: var(--primary); }
.main-heading { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1rem; }
.sub-heading { color: var(--primary); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; margin-bottom: .7rem; display: block; }
.body-text { color: var(--muted); max-width: 760px; }
section { padding: 92px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; padding: .82rem 1.35rem; font-family: var(--font-body); font-weight: 700; cursor: pointer; transition: .25s ease; }
.btn i { margin-left: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: #fce8de; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.7rem; }

.glass-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }

.loader-wrapper { position: fixed; inset: 0; background: var(--surface); z-index: 9999; display: grid; place-items: center; transition: opacity .4s ease; }
.loader-wrapper.fade-out { opacity: 0; pointer-events: none; }
.loader-text { font-family: var(--font-heading); color: var(--primary-dark); font-size: 1.3rem; }
.loader-line, .loader-orbs { display: none; }

.header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(246,239,230,.93); backdrop-filter: blur(7px); border-bottom: 1px solid var(--border); z-index: 100; }
.header.scrolled { box-shadow: 0 8px 25px rgba(58,39,29,.12); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { color: var(--muted); font-weight: 500; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--primary); transition: width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.mobile-menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.hamburger-box { width: 30px; height: 24px; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { width: 30px; height: 2px; background: var(--primary-dark); position: absolute; }
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before, .hamburger-inner::after { content: ""; left: 0; }
.hamburger-inner::before { top: -9px; }
.hamburger-inner::after { bottom: -9px; }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 380px; height: 100vh; background: var(--surface); border-left: 1px solid var(--border); transition: right .3s ease; z-index: 101; }
.mobile-menu.open { right: 0; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(24,15,11,.44); opacity: 0; pointer-events: none; transition: .25s ease; }
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-logo { height: 36px; }
.close-mobile-menu { background: transparent; border: 0; font-size: 1.35rem; }
.mobile-nav-list { display: grid; gap: 1rem; }
.mobile-nav-link { font-size: 1.08rem; }
.mobile-nav-footer { margin-top: auto; }

.live-chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-toggle-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.pulse-ring { display: none; }
.chat-window { position: absolute; right: 0; bottom: 74px; width: 330px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s ease; }
.chat-window.open { opacity: 1; visibility: visible; transform: none; }
.chat-header, .chat-footer { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: .9rem; }
.chat-header { display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: .8rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #efd9c8; display: grid; place-items: center; position: relative; }
.online-dot { position: absolute; width: 9px; height: 9px; background: #44b866; border-radius: 50%; right: 1px; bottom: 2px; }
.close-chat { border: 0; background: transparent; font-size: 1.1rem; }
.chat-body { height: 280px; padding: .9rem; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; }
.chat-message { max-width: 86%; border-radius: 10px; padding: .65rem .8rem; font-size: .9rem; }
.bot-message { background: #f8eadc; border: 1px solid #edd4bf; }
.user-message { margin-left: auto; background: var(--secondary); color: #fff; }
.message-time { display: block; margin-top: .3rem; color: var(--muted); font-size: .7rem; text-align: right; }
#chatForm { display: flex; gap: .6rem; }
#chatInput { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: .55rem .8rem; font-family: var(--font-body); }
#chatForm button { width: 36px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; }

.hero-section { padding-top: 140px; background: linear-gradient(135deg, #f7efe6 0%, #efe0cf 100%); }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; }
.eyebrow { color: var(--secondary); font-weight: 700; margin-bottom: .8rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1rem; }
.hero-description { color: var(--muted); margin-bottom: 1.4rem; max-width: 620px; }
.hero-buttons { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.trust-line { color: var(--muted); font-size: .95rem; }
.hero-visual-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual-card img { width: 100%; height: 370px; object-fit: cover; }
.hero-visual-note { padding: 1rem 1.2rem; display: flex; gap: .7rem; align-items: center; color: var(--muted); }

.marquee-section { background: #f0dfcd; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { padding: 0 1.2rem; color: #8a6c5d; font-weight: 700; font-size: .92rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services-section { background: var(--surface); }
.services-list { margin-top: 2rem; display: grid; gap: 14px; }
.service-row { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; align-items: start; }
.service-icon { width: 46px; height: 46px; border-radius: 10px; background: #f3dfd2; color: var(--primary-dark); display: grid; place-items: center; }
.service-row h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.service-row p { color: var(--muted); margin-bottom: .35rem; }
.service-row a { color: var(--primary-dark); font-weight: 700; }

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.about-image-wrap img { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); height: 420px; width: 100%; object-fit: cover; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 1.6rem 0; }
.stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .8rem; }
.stat-item strong { font-size: 1.45rem; color: var(--primary-dark); display: block; }
.stat-item span { color: var(--muted); font-size: .9rem; }
.why-us-strip { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .95rem; }
.why-card i { color: var(--primary-dark); margin-bottom: .45rem; }
.why-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.why-card p { color: var(--muted); font-size: .9rem; }

.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 1.8rem; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.step-no { color: var(--accent); font-weight: 700; font-size: .88rem; letter-spacing: .08em; }
.step-card i { color: var(--primary-dark); font-size: 1.2rem; margin: .55rem 0; }
.step-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step-card p { color: var(--muted); font-size: .95rem; }

.calculator-section { background: var(--surface); }
.calculator-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; }
.range-group { margin: 1.2rem 0 1.6rem; }
.range-group label { font-weight: 700; display: block; margin-bottom: .6rem; }
input[type=range] { width: 100%; background: transparent; -webkit-appearance: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #d8bca6; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; margin-top: -9px; background: var(--primary); }
.range-labels { display: flex; justify-content: space-between; margin-top: .6rem; color: var(--muted); }
.custom-toggle { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.custom-toggle input { display: none; }
.toggle-slider { width: 44px; height: 24px; border-radius: 99px; background: #dcc4b0; position: relative; }
.toggle-slider::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: .25s ease; }
.custom-toggle input:checked + .toggle-slider { background: #d68c6f; }
.custom-toggle input:checked + .toggle-slider::before { left: 23px; }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.result-header { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: .9rem 1rem; color: var(--primary-dark); font-weight: 700; }
.result-body { padding: 1rem; display: grid; gap: .8rem; }
.result-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: .5rem; }
.result-row span { color: var(--muted); }
.result-row.highlight { background: #f8eadc; border: 1px solid #ebcfb6; border-radius: 10px; padding: .8rem; }
.result-row.highlight strong { color: var(--primary-dark); }
.result-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 1rem; }

.dashboard-mockup { max-width: 1000px; margin: 40px auto 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff8ef; }
.dash-header { height: 40px; background: #f1dfce; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 16px; position: relative; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #d59f83; }
.dash-title { position: absolute; left: 50%; transform: translateX(-50%); color: #7f6758; font-size: .75rem; }
.dash-body { display: flex; height: 380px; }
.dash-sidebar { width: 74px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 18px; }
.sidebar-item { width: 36px; height: 36px; border-radius: 8px; background: #f0dfcf; }
.sidebar-item.active { background: #e0b39a; }
.dash-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.dash-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.dash-stat-box { border: 1px solid var(--border); border-radius: 10px; padding: .65rem; background: #fff; }
.dash-label { font-size: .8rem; color: var(--muted); }
.dash-value { font-size: 1.2rem; display: flex; justify-content: space-between; }
.trend-up { color: #52976d; }
.trend-down { color: #ca6d51; }
.dash-chart-container { flex: 1; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: end; justify-content: center; padding-bottom: 1rem; }
.css-chart-3d { display: flex; gap: 20px; }
.chart-bar { width: 28px; height: 180px; position: relative; }
.chart-bar .bar-front, .chart-bar .bar-right, .chart-bar .bar-top { position: absolute; bottom: 0; transition: .8s ease; }
.chart-bar .bar-front { width: 28px; height: var(--h); background: #e39a7f; }
.chart-bar .bar-right { width: 28px; height: var(--h); transform: rotateY(90deg) translateZ(14px); background: #d47f61; }
.chart-bar .bar-top { width: 28px; height: 28px; transform: rotateX(90deg) translateZ(calc(var(--h) - 14px)); background: #c86546; }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.industry-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; }
.industry-card i { color: var(--primary-dark); margin-bottom: .7rem; font-size: 1.5rem; }
.industry-card p { color: var(--muted); }

.testimonials-section { background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.testimonial-card { min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.feedback { color: var(--muted); margin-bottom: 1rem; }
.client-info { display: flex; align-items: center; gap: .7rem; }
.client-avatar { width: 44px; height: 44px; border-radius: 50%; background: #efd5c4; color: var(--primary-dark); display: grid; place-items: center; }
.client-info span { color: var(--muted); font-size: .84rem; }

.cta-section { background: linear-gradient(140deg, #efe0cf, #f8eee3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: center; }
.cta-action { text-align: right; }
.cta-action p { color: var(--muted); margin-top: .6rem; font-size: .92rem; }

.inner-page-main { padding-top: 80px; }
.page-header-section { padding: 100px 0 60px; text-align: center; position: relative; border-bottom: 1px solid var(--border); }
.page-header-background { position: absolute; inset: 0; background: linear-gradient(135deg, #f4e5d6, transparent); z-index: -1; }
.page-title { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
.page-subtitle { color: var(--muted); max-width: 680px; margin: 0 auto; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; overflow: hidden; margin-top: 2rem; }
.contact-info { padding: 2rem; background: var(--surface-2); border-right: 1px solid var(--border); }
.contact-details { margin-top: 1.7rem; display: grid; gap: 1rem; }
.contact-item { display: flex; gap: .8rem; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: #efddcc; color: var(--primary-dark); display: grid; place-items: center; }
.contact-text p { color: var(--muted); }
.contact-form-wrapper { padding: 2rem; }
.custom-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.custom-form .form-group { margin-bottom: 1rem; }
.custom-form label { display: block; font-weight: 700; margin-bottom: .45rem; }
.custom-form label .req { color: var(--primary); }
.custom-form input, .custom-form select, .custom-form textarea { width: 100%; background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .82rem .95rem; font-family: var(--font-body); }
.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,101,70,.17); }
.custom-form textarea { resize: vertical; min-height: 120px; }

.popup-overlay { position: fixed; inset: 0; background: rgba(32,20,14,.42); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: .25s ease; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content { width: min(92%, 480px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; position: relative; }
.popup-close-btn { position: absolute; top: .8rem; right: 1rem; font-size: 1.5rem; cursor: pointer; }
.popup-icon { color: var(--primary); font-size: 2.3rem; margin-bottom: .8rem; }

.legal-header { padding-bottom: 42px; }
.legal-content { padding-bottom: 80px; }
.legal-content .container { padding: 2rem; }
.legal-section { margin-bottom: 1.5rem; }
.legal-section h2 { color: var(--primary-dark); margin-bottom: .5rem; border-bottom: 1px solid var(--border); padding-bottom: .4rem; }
.legal-section p { color: var(--text); margin-bottom: .8rem; }

.footer { background: #2f241f; color: #f6ede4; padding-top: 72px; border-top: 1px solid #4b3830; }
.footer-particles { display: none; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo img { height: 44px; margin-bottom: .8rem; }
.footer-desc, .footer-links a, .copyright p, .footer-legal-links a { color: #cfbcac; }
.footer-socials { display: flex; gap: .65rem; }
.social-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #47362f; border: 1px solid #5a463d; }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: .8rem; position: relative; padding-bottom: .4rem; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: .45rem; }
.footer-links a i { color: var(--accent); margin-right: .35rem; }
.footer-contact li { display: flex; gap: .65rem; margin-bottom: .7rem; }
.fc-icon { color: var(--accent); }
.fc-text span { font-size: .78rem; text-transform: uppercase; color: #cfbcac; display: block; }
.fc-text strong { color: #fff; font-weight: 500; }
.footer-bottom { border-top: 1px solid #4b3830; padding: 1rem 0 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-legal-links { display: flex; gap: .9rem; }
.footer-legal-links a:hover { color: #fff; }

.scroll-reveal { opacity: 0; transform: translateY(24px); transition: .65s ease; }
.scroll-reveal.active { opacity: 1; transform: none; }

@media (max-width: 1200px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 992px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-split, .about-split, .calculator-wrapper, .contact-wrapper, .cta-split { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: repeat(2,1fr); }
    .why-us-strip { grid-template-columns: 1fr; }
    .cta-action { text-align: left; }
    .contact-info { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .hero-stats, .testimonials-grid, .dash-stats-row { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .custom-form .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .chat-window { width: 280px; right: 0; }
}
