/* =========================================================
   Rahul & Associates — Chartered Accountants
   Blue theme stylesheet
   ========================================================= */

:root {
    --primary: #0b3d78;
    --primary-dark: #072a54;
    --accent: #2e7bf6;
    --accent-light: #eaf2ff;
    --navy-900: #081c36;
    --text-dark: #14213d;
    --text-muted: #5b6b82;
    --white: #ffffff;
    --bg-light: #f4f8fd;
    --border: #dfe8f5;
    --success: #1f9d55;
    --error: #d64545;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11, 61, 120, 0.08);
    --shadow-lg: 0 20px 50px rgba(11, 61, 120, 0.14);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.25;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-heading p { color: var(--text-muted); margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #cfe0f7; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar a { color: #cfe0f7; }
.topbar a:hover { color: var(--white); }
.topbar i { margin-right: 6px; color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(11, 61, 120, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; gap: 20px;
    min-height: 70px; max-height: 80px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.logo-img { width: 46px; height: 46px; max-width: 46px; max-height: 46px; flex-shrink: 0; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-text strong { font-family: var(--font-heading); font-size: 1rem; color: var(--primary-dark); white-space: nowrap; }
.logo-text small { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; }
.logo-text .logo-tagline { font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 1px; white-space: nowrap; }
.logo-light .logo-text strong { color: var(--white); }
.logo-light .logo-text small { color: #a9c2e6; }
.logo-light .logo-text .logo-tagline { color: #7fb8ff; }

.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); padding: 8px 0; position: relative; display: flex; align-items: center; gap: 6px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.main-nav i { font-size: 0.7rem; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 14px); left: -20px;
    background: var(--white);
    min-width: 280px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.dropdown li a:hover { background: var(--accent-light); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--primary-dark); border-radius: 2px; }

/* ---------- Hero (image slider banner) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 130px 0 110px;
    color: var(--white);
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(7, 42, 84, 0.92) 0%, rgba(11, 61, 120, 0.82) 45%, rgba(46, 123, 246, 0.55) 100%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 640px; }
.hero .eyebrow { color: #bcd7ff; }
.hero-text h1 { font-size: 2.6rem; margin-bottom: 20px; color: var(--white); }
.hero-text p { color: #e4edfb; font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-outline-light { border-color: rgba(255,255,255,0.65); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 32px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.hero-badge i { color: #7fd9a8; }

.hero-dots {
    position: absolute; z-index: 1; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer; padding: 0;
    transition: all 0.25s ease;
}
.hero-dot.active { background: var(--white); width: 26px; border-radius: 6px; }

/* ---------- About preview ---------- */
.about-preview-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.media-block {
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}
.about-preview-text h2 { font-size: 2rem; margin-bottom: 18px; }
.about-preview-text p { color: var(--text-muted); margin-bottom: 16px; }
.check-list { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list i { color: var(--accent); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: all 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; }
.service-card-detailed { scroll-margin-top: 120px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.service-link:hover { gap: 10px; }
.center-cta { text-align: center; margin-top: 40px; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--white); }
.stat-label { color: #b9d2f2; font-weight: 500; margin-top: 6px; font-size: 0.9rem; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.approach-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
}
.approach-num {
    width: 50px; height: 50px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
}
.approach-item h4 { margin-bottom: 8px; font-size: 1.02rem; }
.approach-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-grid-single { grid-template-columns: minmax(260px, 380px); justify-content: center; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.team-avatar {
    width: 90px; height: 90px; margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}
.team-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 6px 0 12px; }
.team-bio { color: var(--text-muted); font-size: 0.9rem; }
.placeholder-note { display: block; margin-top: 8px; font-style: italic; opacity: 0.7; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--primary)); padding: 60px 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 6px; }
.cta-band p { color: #eaf2ff; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    background: linear-gradient(160deg, var(--accent-light), var(--white));
    padding: 70px 0 60px;
    text-align: center;
}
.page-banner h1 { font-size: 2.2rem; margin-bottom: 14px; }
.page-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; background: var(--white); border: none;
    padding: 20px 24px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--primary-dark);
}
.faq-question i { color: var(--accent); transition: transform 0.25s ease; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-light); }
.faq-answer p { padding: 0 24px; color: var(--text-muted); font-size: 0.93rem; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-answer p { padding: 18px 24px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 1.6rem; margin-bottom: 14px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list i { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-list h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-list p { color: var(--text-muted); font-size: 0.9rem; }
.contact-info-list a:hover { color: var(--accent); }

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.map-embed iframe { display: block; }
.map-link {
    display: flex; align-items: center; gap: 8px;
    background: var(--white);
    padding: 12px 16px;
    font-weight: 600; font-size: 0.88rem;
    color: var(--accent);
    border-top: 1px solid var(--border);
}
.map-link:hover { background: var(--accent-light); }

/* ---------- Useful links (About page) ---------- */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.link-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.link-card i { color: var(--accent); flex-shrink: 0; font-size: 0.85rem; }
.link-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.links-disclaimer {
    font-size: 0.83rem;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    line-height: 1.7;
}
.links-disclaimer strong { color: var(--primary-dark); }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.alert-success { background: #e7f8ed; color: var(--success); }
.alert-error { background: #fdecec; color: var(--error); }
.alert-error ul { padding-left: 18px; list-style: disc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c9e0; }
.footer-main { padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-about p { font-size: 0.88rem; margin: 16px 0 20px; line-height: 1.7; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--accent); color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 12px; }
.footer-contact i { color: var(--accent); margin-top: 3px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.link-btn { background: none; border: none; color: #b9c9e0; cursor: pointer; font-size: 0.85rem; }
.link-btn:hover { color: var(--white); text-decoration: underline; }

/* ---------- Disclaimer modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(8, 28, 54, 0.7);
    display: none; align-items: center; justify-content: center;
    padding: 20px; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); padding: 34px; max-width: 560px; max-height: 80vh; overflow-y: auto; }
.modal-box h3 { margin-bottom: 16px; }
.modal-box p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.92rem; }
.modal-box ol { padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

/* ---------- Mobile call FAB ---------- */
.mobile-call-fab {
    display: none;
    position: fixed; bottom: 20px; right: 20px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    align-items: center; justify-content: center;
    font-size: 1.3rem; box-shadow: var(--shadow-lg); z-index: 90;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .logo-text small:not(.logo-tagline) { display: none; }
}

@media (max-width: 991px) {
    .about-preview-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid, .approach-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar-inner { justify-content: center; text-align: center; }
    .links-grid { grid-template-columns: 1fr; }
    .logo-img { width: 42px; height: 42px; }
    .logo-text strong { font-size: 0.92rem; }
    .logo-text small { font-size: 0.62rem; }
    .logo-text .logo-tagline { font-size: 0.58rem; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); box-shadow: var(--shadow-lg);
        padding: 90px 24px 24px; transition: right 0.3s ease; z-index: 99;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin-top: 10px; }
    .has-dropdown.open .dropdown { display: block; }
    .nav-toggle { display: flex; }
    .header-actions .btn-primary { display: none; }
    .hero { padding: 100px 0 80px; min-height: 460px; }
    .hero-text h1 { font-size: 2rem; }
    .services-grid, .approach-grid, .team-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band-inner { text-align: center; justify-content: center; }
    .mobile-call-fab { display: flex; }
    .section { padding: 56px 0; }
}
