/* Cochin Funeral Event Management - Premium CSS */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0b132b;
    --primary-light: #1c2541;
    --accent-color: #c5a059;
    --accent-light: #ebd09e;
    --accent-dark: #a3803b;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --font-heading: 'Playfair Display', 'Anek Malayalam', serif;
    --font-body: 'Inter', 'Anek Malayalam', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* Malayalam Language Specific Font Settings */
html[lang="ml"] {
    --font-heading: 'Anek Malayalam', 'Playfair Display', serif;
    --font-body: 'Anek Malayalam', 'Inter', sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--accent-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

.logo-text h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--bg-white);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--accent-light);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--accent-color);
}

/* Controls / Language */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.lang-btn {
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-weight: 600;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

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

/* Hero Section with Slider */
.hero {
    position: relative;
    color: var(--text-light);
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-color);
    background-color: var(--primary-color);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Dark elegant blue-indigo overlay on top of slides for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.45), rgba(28, 37, 65, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating WhatsApp Badge */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

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

/* Values Section */
.values-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.value-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Overview / Categories Section */
.categories-section {
    background-color: #f1ede4;
    padding: 5rem 2rem;
    border-top: 1px solid #e5dfd3;
    border-bottom: 1px solid #e5dfd3;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.category-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.category-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.category-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.category-body ul {
    list-style: none;
}

.category-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.category-body li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.category-body li:last-child {
    border-bottom: none;
}

/* Service Locations Banner */
.locations-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateX(5px);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.location-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer styling */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5rem 2rem 2rem;
    border-top: 4px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h4::after,
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact strong {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About Page styling */
.about-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    background-color: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-decor {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

/* Contact Form styling */
.contact-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border-bottom: 5px solid var(--accent-color);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-info-card p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-text span {
    opacity: 0.8;
    font-size: 0.95rem;
}

.contact-form-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.form-success-msg {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Service Detail Categories Page CSS */
.services-tabs-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 3rem;
    border-bottom: none;
    padding-bottom: 0;
}

.tab-btn {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    padding: 1rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.tab-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tab-text {
    line-height: 1.3;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: #f8f6f0;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-item-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.service-item-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.service-item-card span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1.5rem;
        border-bottom: 2px solid var(--accent-color);
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .nav-controls {
        gap: 0.8rem;
    }
    
    .about-content {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}
