/*
Theme Name: SajGlic Consultancy
Theme URI: https://www.dravidiandesignhub.com
Author: Rahul SG (Dravidian Design Hub)
Author URI: https://www.dravidiandesignhub.com
Description: Premium Custom Theme for SajGlic Consultancy - Lifestyle Protection Systems
Version: 1.1
*/

:root {
    --primary: #D32F2F;      /* Red Accent */
    --primary-dark: #B71C1C;
    
    --secondary: #1E293B;    /* Dark Slate replacing Green */
    --secondary-hover: #0F172A;

    --accent: #D32F2F;       /* Red Accent */
    --accent-hover: #B71C1C;
    
    --bg-light: #F8FAFC;    
    
    --text-dark: #334155;
    --text-light: #64748B;
    --white: #ffffff;
    
    --shadow: 0 15px 40px -10px rgba(0,0,0,0.08); /* Soft, diffused modern shadow */
    --radius: 16px; /* Modern rounded corners */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 120px 0; /* Increased padding for modern spacing */
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 50px; /* Pill shaped buttons */
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    gap: 10px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.2);
}

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

.btn-accent:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

/* Header & Nav (Pill Design Glassmorphism) */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: fixed;
    width: 95%;
    max-width: 1300px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    height: 80px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.nav-drawer {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary);
    cursor: pointer;
}

.close-drawer {
    display: none;
}

.logo img {
    height: 60px;
    width: auto;
}

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

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

.main-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), 
                url('./assets/media/hero-bg.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero .eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .subheadline {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.trust-item i {
    color: var(--primary);
}

/* Sections */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(211, 47, 47, 0.1);
}

.pillar-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.pillar-card h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-card h4 {
    color: var(--primary);
}

.service-card ul {
    margin: 20px 0;
}

.service-card li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.service-card li i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Founder Section */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.founder-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Forms Modernization */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    background-color: var(--bg-light) !important;
    border: 1px solid transparent !important;
    border-bottom: 2px solid rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    background-color: var(--white) !important;
    border-bottom-color: var(--primary) !important;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05) !important;
}

label {
    font-weight: 500 !important;
    color: var(--secondary) !important;
}

/* Footer */
footer {
    background-color: #0F172A; /* Deep Slate replacing Dark Grey */
    color: #94A3B8;
    padding: 100px 0 30px;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 60px;
}

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

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #94A3B8;
}

.footer-col .contact-item i {
    color: var(--primary);
    margin-top: 5px;
}

.copyright {
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    color: var(--white);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--primary);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .founder-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3rem; }
    .trust-indicators { flex-direction: column; gap: 20px; align-items: center; }
    .section-padding { padding: 80px 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    header { height: auto; padding: 15px 0; border-radius: 20px; width: 95%; max-width: 100%; }
    .nav-container { flex-direction: row; gap: 0; }
    .section-header h2 { font-size: 2.2rem; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hamburger { display: block; }
    .nav-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 2001;
    }
    .nav-drawer.active { right: 0; }
    .close-drawer {
        display: block;
        position: absolute;
        top: 25px;
        right: 30px;
        font-size: 2.5rem;
        color: var(--text-dark);
        cursor: pointer;
        line-height: 1;
    }
    .nav-drawer .main-nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
    }
    .nav-drawer .main-nav a {
        font-size: 1.3rem;
        color: var(--secondary);
    }
    .nav-drawer .btn-accent {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

/* Page Headers */
.page-header {
    background: var(--secondary);
    color: var(--white);
    padding: 190px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* Content Area */
.page-content {
    padding: 80px 0;
}

.page-content h1, .page-content h2, .page-content h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--secondary);
}

.page-content p {
    margin-bottom: 20px;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* FAQ Accordion */
.accordion-item {
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.03);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-dark);
}

