/* EnergyMeterData.com - Modern SaaS marketing style */
:root {
    --primary: #CF153C;         /* Energy Red */
    --primary-dark: #A81230;    /* Button hover */
    --secondary: #298F61;       /* Energy Green */
    --bg: #F6F9FB;              /* Page background */
    --text: #1F2933;            /* Dark text */
    --accent-soft: #EAF6F1;     /* Light accent */
    --light-bg: #F6F9FB;
    --gradient-start: #CF153C;
    --gradient-end: #298F61;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    padding-top: 76px;
}

.navbar-brand {
    font-size: 1.25rem;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(207, 21, 60, 0.08);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(207, 21, 60, 0.06) 0%, rgba(41, 143, 97, 0.06) 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(41, 143, 97, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    color: var(--text);
}

.hero-section .lead {
    font-size: 1.15rem;
    color: #3b4650;
    max-width: 600px;
}

/* Sections */
.section-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Feature cards */
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    background: #fff;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover, .pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(207, 21, 60, 0.16);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.pricing-card .price small {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Dashboard preview placeholders */
.dashboard-placeholder {
    background: linear-gradient(145deg, #ffffff 0%, var(--accent-soft) 100%);
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    border: 1px dashed #adb5bd;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .btn-light:hover {
    background: #f8f9fa;
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    font-weight: 600;
    border-radius: 8px;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Bootstrap semantic colors (brand-aligned) */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--secondary) !important; }

.alert-success {
    background-color: rgba(41, 143, 97, 0.10);
    border-color: rgba(41, 143, 97, 0.25);
    color: var(--text);
}

.alert-danger {
    background-color: rgba(207, 21, 60, 0.08);
    border-color: rgba(207, 21, 60, 0.25);
    color: var(--text);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
    color: var(--text);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}

.form-label {
    font-weight: 500;
    color: var(--text);
}

/* Blog */
.blog-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
}

/* Calculators */
.calc-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    margin-bottom: 1.5rem;
}

.calc-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.result-box {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Deployment options */
.deploy-option {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: border-color 0.2s;
}

.deploy-option:hover {
    border-color: var(--primary);
}

/* Alerts */
.alert {
    border-radius: 10px;
}

/* Page headers */
.page-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg) 100%);
    padding: 3rem 0 2.5rem;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-weight: 800;
    color: var(--text);
}

/* Chatbot */
.chat-shell {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
}

.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(135deg, rgba(207, 21, 60, 0.06) 0%, rgba(41, 143, 97, 0.08) 100%);
}

.chat-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.chat-body {
    height: 420px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: var(--bg);
}

.chat-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.chat-row-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: normal;
}

.chat-bubble-bot {
    background: #fff;
    border: 1px solid #e9ecef;
    color: var(--text);
    border-top-left-radius: 6px;
}

.chat-bubble-user {
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 6px;
}

.chat-quick {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.chat-input {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.chat-typing {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(41, 143, 97, 0.9);
    display: inline-block;
    animation: chatBlink 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; opacity: 0.85; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; opacity: 0.7; }

@keyframes chatBlink {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: var(--secondary);
    box-shadow: 0 14px 32px rgba(31, 41, 51, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    background: #1f7a52;
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.28);
}

.whatsapp-icon {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* Responsive */
@media (max-width: 991.98px) {
    body { padding-top: 66px; }
    .hero-section { padding: 2.5rem 0 3rem; }
    .brand-logo { height: 30px; }
}

@media (max-width: 575.98px) {
    .pricing-card .price { font-size: 2rem; }
    .brand-logo { height: 28px; }
}
