/**
 * KhushiNest - Main Stylesheet
 * Mobile-First Design Approach
 */

/* ================================
   CSS Variables
================================ */
:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --secondary-color: #673ab7;
    --accent-color: #ff9800;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #212121;
    --gray-color: #757575;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ================================
   Base Styles
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   Sticky Contact Buttons
================================ */
.sticky-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sticky {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-sticky:hover {
    transform: scale(1.1);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-call {
    background-color: var(--primary-color);
}

.btn-call:hover {
    background-color: var(--primary-dark);
}

/* ================================
   Top Bar
================================ */
.top-bar {
    background-color: var(--dark-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-contact a {
    color: rgba(255,255,255,0.9);
    margin-right: 20px;
}

.top-contact a:hover {
    color: var(--white);
}

.top-contact i {
    margin-right: 5px;
}

.top-social a {
    color: rgba(255,255,255,0.9);
    margin-left: 15px;
    font-size: 16px;
}

.top-social a:hover {
    color: var(--primary-color);
}

/* ================================
   Navigation
================================ */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-color);
}

.btn-enquiry {
    padding: 10px 24px !important;
    font-weight: 600;
    border-radius: 25px;
}

/* ================================
   Hero Section
================================ */
.hero {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(103, 58, 183, 0.9)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: var(--white);
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero .btn {
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    margin: 5px;
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ================================
   Section Styles
================================ */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 16px auto 0;
    border-radius: 2px;
}

.bg-light-custom {
    background-color: var(--light-gray);
}

/* ================================
   Event Cards
================================ */
.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event-card-img {
    height: 180px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-card-img img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.event-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.event-card .btn {
    align-self: flex-start;
}

/* ================================
   Service Cards
================================ */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ================================
   Gallery
================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================================
   CTA Section
================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-section .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 30px;
}

/* ================================
   Enquiry Form
================================ */
.enquiry-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.enquiry-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: var(--transition);
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.service-checkbox {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    min-height: 44px;
}

.service-checkbox:hover {
    border-color: var(--primary-color);
    background-color: var(--light-gray);
}

.service-checkbox.checked {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.service-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.service-checkbox label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ================================
   Contact Page
================================ */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--gray-color);
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

/* ================================
   Page Header
================================ */
.page-header {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(103, 58, 183, 0.9));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ================================
   Event Detail Page
================================ */
.event-detail-header {
    padding: 40px 0;
}

.event-detail-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.event-detail-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.event-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.service-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ================================
   Footer
================================ */
.footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    margin-right: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ================================
   Buttons
================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ================================
   Utilities
================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ================================
   Alert Messages
================================ */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 16px 20px;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

/* ================================
   Loading Spinner
================================ */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   Responsive Styles - Tablet
================================ */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event-card-img {
        height: 200px;
    }
    
    .page-header {
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* ================================
   Responsive Styles - Desktop
================================ */
@media (min-width: 992px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .event-detail-img img {
        height: 400px;
    }
}

/* ================================
   Print Styles
================================ */
@media print {
    .sticky-buttons,
    .top-bar,
    .navbar,
    .footer {
        display: none !important;
    }
}
/* ================================
   Service Cards (Event Page)
================================ */
.services-card-grid {
    margin-bottom: 2rem;
}

.service-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-card-img {
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e1bee7 100%);
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-icon {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.service-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.service-card-teaser {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--gray-color);
}

.service-card .btn-outline-primary {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Service Detail Page */
.service-detail-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-detail-img img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.service-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.service-description {
    line-height: 1.8;
}

.service-gallery .gallery-thumb {
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer;
}

.service-gallery .gallery-thumb:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.event-link-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.event-link-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.event-link-card .card-title {
    color: var(--dark-color);
    font-size: 0.85rem;
}

/* Responsive adjustments for service cards */
@media (max-width: 575.98px) {
    .service-card-img {
        height: 100px;
    }
    
    .service-card-icon {
        font-size: 2.5rem;
    }
    
    .service-card-title {
        font-size: 0.85rem;
    }
    
    .service-card-teaser {
        display: none;
    }
    
    .service-card .btn-outline-primary {
        font-size: 0.65rem;
    }
}

@media (min-width: 768px) {
    .service-card-img {
        height: 140px;
    }
    
    .service-card-title {
        font-size: 1rem;
    }
    
    .service-gallery .gallery-thumb {
        height: 180px;
    }
}