/*
 * Custom CSS — Bootstrap 5 Overrides & Brand Styling
 * Kantor Hukum Novendri Yusdi & Partners
 */

/* ── CSS Custom Properties ───────────────── */
:root {
    --ny-primary:        #1B2A4A;
    --ny-primary-light:  #2D4270;
    --ny-secondary:      #C8A951;
    --ny-secondary-light:#E8D49A;
    --ny-dark:           #1A1D26;
    --ny-text:           #4A4F5C;
    --ny-bg-alt:         #F5F6F8;
    --ny-border:         #E2E4E9;
    --ny-radius:         16px;
    --ny-shadow:         0 4px 20px rgba(27, 42, 74, 0.08);
    --ny-shadow-lg:      0 12px 40px rgba(27, 42, 74, 0.14);
}

/* ── Typography ──────────────────────────── */
h1, h2, h3, .h1, .h2, .h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--ny-dark);
}

h4, h5, h6, .h4, .h5, .h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--ny-dark);
}

body, p, li, td {
    color: var(--ny-text);
    line-height: 1.7;
}

a {
    color: var(--ny-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

/* ── Bootstrap Button Overrides ──────────── */
.btn-primary {
    background: var(--ny-primary);
    border-color: var(--ny-primary);
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ny-primary-light);
    border-color: var(--ny-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 42, 74, 0.25);
}

.btn-secondary {
    background: var(--ny-secondary);
    border-color: var(--ny-secondary);
    color: var(--ny-dark);
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--ny-secondary-light);
    border-color: var(--ny-secondary-light);
    color: var(--ny-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

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

.btn-wa {
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-wa:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ── Hero Section ────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ny-primary) 0%, var(--ny-primary-light) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(200, 169, 81, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section .hero-badge {
    display: inline-block;
    background: rgba(200, 169, 81, 0.15);
    color: var(--ny-secondary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-section p.lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 540px;
}

/* ── Section Spacing ─────────────────────── */
.section-padding {
    padding: 5rem 0;
}

.bg-alt {
    background: var(--ny-bg-alt);
}

.bg-dark-navy {
    background: var(--ny-primary) !important;
}

/* ── Bootstrap Accordion Overrides ────────── */
.accordion-item {
    border: 1px solid var(--ny-border);
    border-radius: var(--ny-radius) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: var(--ny-shadow);
}

.accordion-button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--ny-dark);
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(200, 169, 81, 0.08);
    color: var(--ny-primary);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B2A4A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--ny-text);
}

/* ── Bootstrap Card Overrides ────────────── */
.card {
    border: none;
    border-radius: var(--ny-radius);
    box-shadow: var(--ny-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    transition: transform 0.5s ease;
}

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

.card .overflow-hidden {
    border-radius: var(--ny-radius) var(--ny-radius) 0 0;
    overflow: hidden;
}

/* ── Carousel (Testimoni) ────────────────── */
.carousel-indicators [data-bs-target] {
    background-color: var(--ny-secondary);
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

/* ── Counter Section ─────────────────────── */
.counter-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--ny-secondary) !important;
    line-height: 1;
}

.counter-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ── Breadcrumbs ─────────────────────────── */
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumbs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs-list .breadcrumb-item a { color: var(--ny-primary); }
.breadcrumbs-list .breadcrumb-item a:hover { color: var(--ny-secondary); }
.breadcrumbs-list .separator { margin: 0 0.5rem; color: var(--ny-border); }

/* ── Footer ──────────────────────────────── */
.footer-dark {
    background: var(--ny-primary);
    color: rgba(255, 255, 255, 0.7);
}

.footer-dark h5 {
    color: var(--ny-secondary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-dark a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-dark a:hover {
    color: var(--ny-secondary);
}

.footer-dark .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* ── WhatsApp Float ──────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px;   /* above bottom nav */
    right: 24px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 32px;
    }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 767.98px) {
    .section-padding { padding: 3rem 0; }
    .hero-section { min-height: 90vh; }
}
