/**
 * ImmanuelPavilion Services Limited
 * Frontend Custom Styles
 * Color Palette: Black (#0a0a0a), Gold (#c8a45a), White (#ffffff)
 */

:root {
    --ip-black: #0a0a0a;
    --ip-dark: #111111;
    --ip-dark-gray: #1a1a1a;
    --ip-mid-gray: #2a2a2a;
    --ip-gold: #c8a45a;
    --ip-gold-light: #e8d5a0;
    --ip-gold-dark: #a68940;
    --ip-white: #ffffff;
    --ip-off-white: #f5f5f5;
    --ip-text: #cccccc;
    --ip-text-muted: #888888;
    --ip-font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    --ip-transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ip-font);
    background: var(--ip-black);
    color: var(--ip-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ip-white);
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--ip-gold); text-decoration: none; transition: var(--ip-transition); }
a:hover { color: var(--ip-gold-light); }

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

.gold-text { color: var(--ip-gold) !important; }
.gold-gradient {
    background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== NAVBAR ==================== */
.ip-navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 90, 0.1);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: var(--ip-transition);
}

.ip-navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.ip-navbar .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ip-gold) !important;
    letter-spacing: 1px;
}

.ip-navbar .navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.ip-navbar .nav-link {
    color: #ccc !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--ip-transition);
    position: relative;
}

.ip-navbar .nav-link:hover,
.ip-navbar .nav-link.active {
    color: var(--ip-gold) !important;
}

.ip-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--ip-gold);
}

.navbar-toggler {
    border-color: rgba(200, 164, 90, 0.3) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(200,164,90,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ==================== HERO ==================== */
.ip-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 40%, #0a0a0a 100%);
    overflow: hidden;
}

.ip-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200, 164, 90, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.ip-hero .hero-badge {
    display: inline-block;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid rgba(200, 164, 90, 0.2);
    color: var(--ip-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ip-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.ip-hero p.lead {
    font-size: 1.15rem;
    color: #999;
    max-width: 600px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .ip-hero h1 { font-size: 2.2rem; }
    .ip-hero { min-height: 85vh; }
}

/* ==================== BUTTONS ==================== */
.btn-gold {
    background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-dark));
    color: var(--ip-black);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--ip-transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 164, 90, 0.3);
    color: var(--ip-black);
    background: linear-gradient(135deg, var(--ip-gold-light), var(--ip-gold));
}

.btn-outline-gold {
    border: 1.5px solid var(--ip-gold);
    color: var(--ip-gold);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--ip-transition);
}

.btn-outline-gold:hover {
    background: var(--ip-gold);
    color: var(--ip-black);
    transform: translateY(-2px);
}

/* ==================== SECTIONS ==================== */
.ip-section {
    padding: 6rem 0;
}

.ip-section-dark {
    background: var(--ip-dark);
}

.ip-section-light {
    background: var(--ip-off-white);
    color: #333;
}

.ip-section-light h2,
.ip-section-light h3,
.ip-section-light h4 {
    color: var(--ip-black);
}

.ip-section-light p {
    color: #555;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header .gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-gold), var(--ip-gold-light));
    margin: 1rem auto;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.ip-card {
    background: var(--ip-dark-gray);
    border: 1px solid rgba(200, 164, 90, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--ip-transition);
    height: 100%;
}

.ip-card:hover {
    border-color: rgba(200, 164, 90, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.ip-card .card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.ip-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.ip-card .card-body {
    padding: 1.5rem;
}

.ip-card .card-body h5 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ip-card .card-body p {
    font-size: 0.9rem;
    color: var(--ip-text-muted);
}

.ip-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(200, 164, 90, 0.9);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Light card variant */
.ip-card-light {
    background: var(--ip-white);
    border-color: #eee;
}

.ip-card-light:hover {
    border-color: var(--ip-gold);
}

.ip-card-light .card-body h5 { color: var(--ip-black); }
.ip-card-light .card-body p { color: #666; }

/* ==================== SERVICE CARDS ==================== */
.ip-service-card {
    background: var(--ip-dark-gray);
    border: 1px solid rgba(200, 164, 90, 0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--ip-transition);
    height: 100%;
}

.ip-service-card:hover {
    border-color: rgba(200, 164, 90, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.ip-service-card .service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--ip-gold);
    transition: var(--ip-transition);
}

.ip-service-card:hover .service-icon {
    background: var(--ip-gold);
    color: var(--ip-black);
}

.ip-service-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.ip-service-card p {
    font-size: 0.9rem;
    color: var(--ip-text-muted);
}

/* ==================== TEAM CARDS ==================== */
.ip-team-card {
    background: var(--ip-dark-gray);
    border: 1px solid rgba(200, 164, 90, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: var(--ip-transition);
}

.ip-team-card:hover {
    border-color: rgba(200, 164, 90, 0.25);
    transform: translateY(-3px);
}

.ip-team-card .team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--ip-gold);
}

.ip-team-card .team-info {
    padding: 1.5rem;
}

.ip-team-card h5 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.ip-team-card .team-role { color: var(--ip-gold); font-size: 0.85rem; font-weight: 500; }

/* ==================== TESTIMONIALS ==================== */
.ip-testimonial {
    background: var(--ip-dark-gray);
    border: 1px solid rgba(200, 164, 90, 0.08);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    height: 100%;
}

.ip-testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(200, 164, 90, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.ip-testimonial p {
    font-style: italic;
    font-size: 0.95rem;
    color: #bbb;
    margin-top: 1rem;
}

.ip-testimonial .client-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.ip-testimonial .client-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ip-gold);
}

.ip-testimonial .client-name {
    color: var(--ip-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.ip-testimonial .client-role {
    color: var(--ip-gold);
    font-size: 0.8rem;
}

/* ==================== FOOTER ==================== */
.ip-footer {
    background: var(--ip-dark);
    border-top: 1px solid rgba(200, 164, 90, 0.1);
    padding: 4rem 0 0;
}

.ip-footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--ip-gold);
}

.ip-footer p, .ip-footer li, .ip-footer a {
    font-size: 0.9rem;
    color: #888;
}

.ip-footer a:hover { color: var(--ip-gold); }

.ip-footer ul {
    list-style: none;
    padding: 0;
}

.ip-footer ul li {
    padding: 0.3rem 0;
}

.ip-footer .footer-bottom {
    background: var(--ip-black);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(200, 164, 90, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.ip-footer .social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    align-items: center;
    justify-content: center;
    color: var(--ip-gold);
    margin-right: 0.5rem;
    transition: var(--ip-transition);
}

.ip-footer .social-icons a:hover {
    background: var(--ip-gold);
    color: var(--ip-black);
}

/* ==================== PAGE HEADER ==================== */
.ip-page-header {
    background: linear-gradient(135deg, var(--ip-dark) 0%, var(--ip-black) 100%);
    padding: 8rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(200, 164, 90, 0.1);
    position: relative;
}

.ip-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ip-gold);
}

.ip-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ip-page-header .breadcrumb {
    justify-content: center;
    margin-top: 1rem;
}

.ip-page-header .breadcrumb-item,
.ip-page-header .breadcrumb-item a {
    font-size: 0.85rem;
    color: var(--ip-text-muted);
}

.ip-page-header .breadcrumb-item.active {
    color: var(--ip-gold);
}

/* ==================== WHY CHOOSE US ==================== */
.ip-why-card {
    text-align: center;
    padding: 1.5rem;
}

.ip-why-card .why-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(200, 164, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--ip-gold);
}

.ip-why-card h6 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ip-why-card p {
    font-size: 0.85rem;
    color: var(--ip-text-muted);
}

/* ==================== GALLERY ==================== */
.ip-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.ip-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ip-gallery-item:hover img {
    transform: scale(1.08);
}

.ip-gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ip-transition);
}

.ip-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.ip-gallery-item .gallery-overlay i {
    font-size: 2rem;
    color: var(--ip-gold);
}

/* ==================== FILTER BUTTONS ==================== */
.ip-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ip-filters .filter-btn {
    background: transparent;
    border: 1px solid rgba(200, 164, 90, 0.2);
    color: #aaa;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--ip-transition);
}

.ip-filters .filter-btn:hover,
.ip-filters .filter-btn.active {
    background: var(--ip-gold);
    border-color: var(--ip-gold);
    color: var(--ip-black);
}

/* ==================== CONTACT FORM ==================== */
.ip-contact-form .form-control,
.ip-contact-form .form-select {
    background: var(--ip-dark-gray);
    border: 1px solid rgba(200, 164, 90, 0.15);
    color: var(--ip-white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: var(--ip-transition);
}

.ip-contact-form .form-control:focus,
.ip-contact-form .form-select:focus {
    border-color: var(--ip-gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 164, 90, 0.1);
    background: var(--ip-dark-gray);
    color: var(--ip-white);
}

.ip-contact-form .form-control::placeholder {
    color: #666;
}

.ip-contact-form label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--ip-transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== PAGINATION ==================== */
.pagination .page-link {
    background: var(--ip-dark-gray);
    border-color: rgba(200, 164, 90, 0.1);
    color: #ccc;
}

.pagination .page-link:hover {
    background: rgba(200, 164, 90, 0.1);
    border-color: var(--ip-gold);
    color: var(--ip-gold);
}

.pagination .page-item.active .page-link {
    background: var(--ip-gold);
    border-color: var(--ip-gold);
    color: var(--ip-black);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.2);
    border: 1px solid rgba(200, 164, 90, 0.3);
    color: var(--ip-gold);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--ip-transition);
    cursor: pointer;
}

.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--ip-gold); color: var(--ip-black); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .ip-section { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.8rem; }
    .ip-page-header h1 { font-size: 1.8rem; }
    .ip-page-header { padding: 6rem 0 2rem; }
}

/* ==================== VALUES SECTION ==================== */
.ip-value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ip-value-item .value-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    background: rgba(200, 164, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ip-gold);
    font-size: 1.2rem;
}

.ip-value-item h6 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.ip-value-item p { font-size: 0.85rem; color: var(--ip-text-muted); margin: 0; }

/* ==================== STATS ==================== */
.ip-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.ip-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ip-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ip-stat .stat-label {
    font-size: 0.9rem;
    color: var(--ip-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CTA SECTION ==================== */
.ip-cta {
    background: linear-gradient(135deg, rgba(200, 164, 90, 0.1), rgba(200, 164, 90, 0.05));
    border: 1px solid rgba(200, 164, 90, 0.15);
    border-radius: 16px;
    padding: 3.5rem;
    text-align: center;
}

.ip-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ip-cta p {
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ==================== BLOG CARD ==================== */
.ip-blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--ip-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ip-blog-card .blog-category {
    display: inline-block;
    background: rgba(200, 164, 90, 0.1);
    color: var(--ip-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==================== CONTENT PAGES ==================== */
.ip-content h4 {
    color: var(--ip-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ip-content ul {
    padding-left: 1.5rem;
}

.ip-content ul li {
    padding: 0.3rem 0;
    color: var(--ip-text);
}

.ip-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
