/* Components CSS - Navbar, Footer, Buttons, Cards, Forms, Modals for SK Chit Funds */

/* ==========================================
   HEADER & NAVBAR
   Modularized into assets/css/header.css
   ========================================== */

/* Founder Note Card Component */
.founder-note-card {
    background: #F4F4F5;
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem 1.75rem;
    border-radius: 0 4px 4px 0;
    margin: 1.75rem 0;
}

.founder-quote-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #3F3F46;
    font-style: italic;
    margin-bottom: 0.85rem;
}

.founder-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.founder-signature-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.founder-signature-role {
    font-size: 0.82rem;
    color: #71717A;
    font-weight: 500;
}

/* Philosophy & Overview Image Frame */
.philosophy-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background-color: #F4F4F5;
}

.philosophy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.philosophy-image-wrapper:hover img {
    transform: scale(1.02);
}

/* ==========================================
   BUTTONS (SHARP CORNERS)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background-color: var(--green-300);
    color: var(--green-950);
}

.btn-primary:hover {
    background-color: var(--green-500);
    border-color: var(--green-500);
}

.btn-outline {
    background-color: transparent;
    color: var(--green-300);
    border-color: var(--green-300);
}

.btn-outline:hover {
    background-color: var(--green-300);
    color: var(--green-950);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-on-dark);
    border-color: var(--text-on-dark);
}

.btn-outline-white:hover {
    background-color: var(--text-on-dark);
    color: var(--green-950);
}

.btn-dark {
    background-color: var(--green-950);
    color: var(--text-on-dark);
}

.btn-dark:hover {
    background-color: var(--accent);
    color: var(--green-950);
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg-darker);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--primary-blue);
}

.btn-text svg,
.btn-primary svg {
    transition: transform 0.25s ease;
}

.btn-text:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   CARDS & GRIDS
   ========================================== */

/* 1. Service Cards (Legacy - Not used in new split layout) */
.service-card-premium {
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal) ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-slow) ease;
}

.service-card-premium:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transition: transform var(--transition-normal) ease;
    z-index: 2;
}

.service-card-premium.featured::before,
.service-card-premium:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--blue-light);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    transition: all var(--transition-normal) ease;
    border-radius: var(--radius-sm);
}

.service-card-premium:hover .service-card-icon {
    background-color: var(--primary-blue);
    color: var(--text-white);
    transform: rotateY(180deg);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bg-darker);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-card-desc {
    font-size: 0.925rem;
    color: #71717A;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-card-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-card-link:hover {
    color: var(--blue-dark);
}

.service-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* 2. Testimonial Cards */
.testimonial-card-navy {
    background-color: var(--text-white);
    color: var(--charcoal);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-sm);
    text-align: left; /* Left align for premium editorial feel */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-blue); /* Left blue border line */
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 2px solid var(--primary-blue);
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    color: var(--bg-darker);
}

.testimonial-author-role {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-quote-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: #3F3F46;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 0;
}

/* 3. News Cards */
.news-card-premium {
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-normal) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.news-card-premium:hover .news-card-image-wrapper img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-blue);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    z-index: 2;
}

.news-card-body {
    padding: 2.25rem var(--spacing-sm);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-title-link {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bg-darker);
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: block;
}

.news-card-title-link:hover {
    color: var(--primary-blue);
}

.news-card-excerpt {
    font-size: 0.925rem;
    color: #71717A;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Colors for News Alternates */
.news-card-premium.blue-bg {
    background-color: var(--primary-blue);
    border-color: transparent;
    color: var(--text-white);
}
.news-card-premium.blue-bg .news-card-title-link {
    color: var(--text-white);
}
.news-card-premium.blue-bg .news-card-title-link:hover {
    color: var(--bg-darker);
}
.news-card-premium.blue-bg .news-card-excerpt {
    color: var(--text-light);
}
.news-card-premium.blue-bg .news-date-badge {
    background-color: var(--bg-darker);
}
.news-card-premium.blue-bg .news-card-footer {
    border-top-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.news-card-premium.navy-bg {
    background-color: var(--bg-dark);
    border-color: transparent;
    color: var(--text-white);
}
.news-card-premium.navy-bg .news-card-title-link {
    color: var(--text-white);
}
.news-card-premium.navy-bg .news-card-title-link:hover {
    color: var(--primary-blue);
}
.news-card-premium.navy-bg .news-card-excerpt {
    color: var(--text-light);
}
.news-card-premium.navy-bg .news-card-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.news-card-premium:hover {
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   PRICING PLAN TIERS
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pricing-card {
    background-color: var(--text-white);
    border: 1.5px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal) ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlighted {
    border-color: var(--primary-blue);
    background-color: var(--bg-darker);
    color: var(--text-white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted .pricing-title,
.pricing-card.highlighted .pricing-price {
    color: var(--text-white);
}

.pricing-card.highlighted .pricing-price span {
    color: var(--text-light);
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-darker);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--charcoal);
}

.pricing-features li svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.pricing-card.highlighted .pricing-features li {
    color: var(--text-light);
}

.pricing-card.highlighted .pricing-features li svg {
    color: var(--text-white);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.pricing-card.highlighted:hover {
    transform: translateY(-12px);
}

/* ==========================================
   FAQ ACCORDION COMPONENT
   ========================================== */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.faq-accordion-item {
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition-normal) ease;
}

.faq-accordion-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background-color: var(--text-white);
    transition: background-color var(--transition-fast) ease;
}

.faq-accordion-header:hover {
    background-color: var(--light-bg);
}

.faq-question-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-darker);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.faq-accordion-icon,
.faq-icon-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    transition: transform var(--transition-normal) ease;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
    padding: 0 2rem;
}

.faq-accordion-content p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #3F3F46;
    margin: 0;
}

/* Active State Accordion */
.faq-accordion-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(63, 63, 70, 0.08);
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 1000px; /* arbitrary height to expand */
    transition: max-height var(--transition-slow) ease-in-out;
}

/* ==========================================
   FORMS & INPUTS (SHARP CORNERS)
   ========================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-input-premium {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--bg-darker);
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); /* Sharp corners */
    outline: none;
    transition: all var(--transition-fast) ease;
}

.form-input-premium:focus {
    border-color: var(--primary-blue);
    background-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(63, 63, 70, 0.12);
}

textarea.form-input-premium {
    min-height: 160px;
    resize: vertical;
}

/* ==========================================
   PAGE HERO BANNER Component
   ========================================== */
.page-hero-banner {
    position: relative;
    background-color: var(--bg-darker);
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.85) 0%, rgba(63, 63, 70, 0.7) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.breadcrumb-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-white);
}

.breadcrumb-list a:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* ==========================================
   BROCHURE DOWNLOAD MODAL
   ========================================== */
.brochure-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(63, 63, 70, 0.82);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}

.brochure-modal-content {
    background: var(--text-white);
    border-radius: var(--radius-sm);
    max-width: 580px;
    width: 90%;
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform var(--transition-normal) ease;
}

.brochure-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.brochure-modal-close:hover {
    color: var(--bg-darker);
}

.brochure-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.brochure-plan-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-fast) ease;
}

.brochure-plan-link:hover {
    border-color: var(--primary-blue);
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.brochure-plan-details {
    text-align: left;
}

.brochure-plan-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-darker);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.brochure-plan-desc {
    font-size: 0.825rem;
    color: #71717A;
}

.brochure-download-arrow {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ==========================================
   FOOTER
   Modularized into assets/css/footer.css
   ========================================== */

/* ==========================================
   FLOATING ACTION BUTTONS
   ========================================== */
/* ==========================================
   FLOATING ACTION BUTTONS (Corporate Gold & Forest Green)
   ========================================== */
.floating-actions-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 999;
}

.float-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-950);
    color: var(--accent);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 1.1rem;
    transition: all var(--transition-fast) ease;
    text-decoration: none;
}

.float-phone-btn {
    background-color: var(--green-800);
    color: var(--green-300);
}

.float-whatsapp-btn {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.float-phone-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    transition: fill var(--transition-fast) ease;
}

.float-whatsapp-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.float-action-btn:hover {
    background-color: var(--green-300);
    color: var(--green-950);
    border-color: var(--green-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 181, 159, 0.35);
}

.float-action-btn:hover svg {
    fill: var(--green-950);
}

/* Hero Background Utilities (zero inline styles in hero) */
.hero-bg-coins {
    background-image: url('../../images/Hands holding a glass jar filled with coins.jpg');
}

.hero-bg-rupees {
    background-image: url('../../images/500 rupee closeup.jpg');
}

/* ==========================================================================
   SK CHIT FUNDS — ANIMATED BRAND LETTERING LOADER
   Airy, pale-mint canvas with calligraphy-drawn serif brand lettering.
   ========================================================================== */

.sk-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4fbf7;
    background: radial-gradient(circle at center, #fbfdfc 0%, #ecf7f1 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

/* Hidden state */
.sk-loader.sk-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Canvas container with left-to-right progressive unmasking */
.sk-loader-canvas {
    width: 90%;
    max-width: 760px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    clip-path: inset(0 100% 0 0);
    animation: skLetteringReveal 1.35s cubic-bezier(0.22, 0.9, 0.35, 1) 0.08s forwards;
}

/* SVG Scalability */
.sk-loader-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Animated Serif Lettering */
.sk-letter-drawn {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 82px;
    font-weight: 400;
    letter-spacing: 0.035em;
    fill: transparent;
    stroke: #072F2D;
    stroke-width: 1.6px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 950;
    stroke-dashoffset: 950;
    animation: 
        skStrokeDraw 1.4s cubic-bezier(0.25, 0.9, 0.35, 1) 0.1s forwards,
        skStrokeSolidify 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
}

/* Hand-drawn baseline flourish */
.sk-pen-flourish {
    fill: none;
    stroke: #0b6b3a;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    opacity: 0.55;
    animation: skStrokeDraw 0.85s cubic-bezier(0.2, 0.85, 0.3, 1) 0.75s forwards;
}

/* Keyframe Animations */
@keyframes skLetteringReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes skStrokeDraw {
    0% {
        stroke-dashoffset: 950;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes skStrokeSolidify {
    0% {
        fill: transparent;
        stroke: #072F2D;
    }
    100% {
        fill: #072F2D;
        stroke: rgba(7, 47, 45, 0.1);
    }
}

/* Mobile Typography Optimization */
@media (max-width: 600px) {
    .sk-loader-canvas {
        padding: 16px;
    }
    .sk-letter-drawn {
        font-size: 68px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .sk-loader,
    .sk-loader * {
        animation: none !important;
        transition: none !important;
    }
    .sk-loader-canvas {
        clip-path: inset(0 0% 0 0);
    }
    .sk-letter-drawn {
        fill: #072F2D;
        stroke: transparent;
        stroke-dashoffset: 0;
    }
    .sk-pen-flourish {
        stroke-dashoffset: 0;
    }
}