/* css/style.css */
/* Core Design System for CoverWise India */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0d9488;         /* Primary Teal */
    --primary-hover: #0f766e;   /* Teal Dark */
    --primary-light: #f0fdfa;   /* Teal Light */
    --secondary: #0284c7;       /* Accent Blue */
    --secondary-hover: #0369a1; /* Accent Blue Dark */
    --secondary-light: #f0f9ff; /* Accent Blue Light */
    --accent: #f59e0b;          /* Gold Warning/Highlight */
    --dark: #0f172a;            /* Slate 900 */
    --dark-muted: #475569;      /* Slate 600 */
    --light: #f8fafc;           /* Slate 50 */
    --white: #ffffff;
    --border: #e2e8f0;          /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

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

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Badge tags */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--dark-muted);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--dark-muted);
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
}

.trust-badge-item svg {
    color: #10b981; /* green indicator */
    flex-shrink: 0;
}

/* Quote Lead Form Container */
.quote-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-xl);
}

.quote-form-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Partner Logos Section */
.partners-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partners-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1; /* silver logo style */
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.partner-logo span {
    color: #94a3b8;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--dark-muted);
    font-weight: 500;
}

/* Why Agent Section */
.why-agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.why-feature-item {
    display: flex;
    gap: 16px;
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.why-content p {
    color: var(--dark-muted);
    font-size: 15px;
}

.photo-badge-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.photo-badge-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Products Layout */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.product-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--dark-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.product-features-list {
    list-style: none;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark);
}

.product-features-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Compare Policy Tool */
.compare-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.compare-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    display: none; /* revealed via JS */
}

.compare-table.active {
    display: table;
}

.compare-table th, .compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    background-color: var(--light);
}

.compare-table td:nth-child(2), .compare-table td:nth-child(3) {
    font-weight: 500;
}

.claim-helper-banner {
    background: linear-gradient(135deg, var(--dark), var(--primary-hover));
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.claim-helper-banner h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 8px;
}

.claim-helper-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Claim Assistance Steps */
.claims-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.flow-step-card {
    text-align: center;
    position: relative;
    padding: 20px;
}

.flow-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 15px auto;
}

.flow-step-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.flow-step-card p {
    font-size: 13px;
    color: var(--dark-muted);
}

/* Calculators Layout */
.calc-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.calc-nav-btn {
    padding: 15px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.calc-nav-btn.active {
    background-color: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--primary);
}

.calc-content-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.calc-content-card.active {
    display: block;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.calc-results {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.calc-result-value {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
    font-family: var(--font-heading);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.faq-header:hover {
    background-color: var(--light);
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    transition: var(--transition);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-info-details p, .contact-info-details a {
    color: var(--dark-muted);
    font-size: 15px;
}

/* Footer Section */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 20px 0;
    border-top: 3px solid var(--primary);
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

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

/* Floating Widgets */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Mobile Sticky Bottom Bar */
.sticky-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 998;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.sticky-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-muted);
}

.sticky-bottom-item svg {
    margin-bottom: 4px;
    color: var(--primary);
}

.sticky-bottom-item:nth-child(2) {
    background-color: #25d366;
    color: var(--white);
}

.sticky-bottom-item:nth-child(2) svg {
    color: var(--white);
}

.sticky-bottom-item:nth-child(3) {
    background-color: var(--primary);
    color: var(--white);
}

.sticky-bottom-item:nth-child(3) svg {
    color: var(--white);
}

/* Modal form style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-muted);
}

/* Keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Blog/Knowledge center elements */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
}

.blog-body {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--dark-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-body p {
    font-size: 14px;
    color: var(--dark-muted);
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text p {
        margin: 0 auto 30px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .trust-badges-grid {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .why-agent-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photo-badge-card {
        height: 350px;
    }
    
    .calc-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compare-selectors {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border);
        gap: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .sticky-bottom-bar {
        display: grid;
    }
    
    body {
        padding-bottom: 60px; /* offset for bottom bar */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-nav {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
}
