/* =========================================================
   CA KEYUR DOSHI — Design Tokens
   A Swiss-corporate financial identity built entirely on
   Helvetica, deep navy, brass gold and warm paper.
   ========================================================= */
:root {
    --navy:        #2E6DA4;
    --navy-2:      #3B7EBA;
    --navy-soft:   #6BA3D0;
    --gold:        #B08D57;
    --gold-soft:   #D1B583;
    --paper:       #F7F9FB;
    --white:       #FFFFFF;
    --ink:         #212B36;
    --slate:       #5C6672;
    --line:        #E1E6EC;
    --line-strong: #CFD7E0;

    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
    font-family: var(--font);
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.eyebrow.on-navy { color: var(--gold-soft); }

.section-title {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.section-sub {
    font-size: 16px;
    color: var(--slate);
    max-width: 620px;
    line-height: 1.75;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.section-tight { padding: 70px 0; }

.section-navy {
    background: var(--navy);
    color: #D9E7F3;
}

.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 {
    color: var(--white);
}

.section-header {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-header.left {
    margin: 0 0 60px;
    text-align: left;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--line);
}

/* =========================================================
   Seal / Monogram — signature element
   ========================================================= */
.seal {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    background: var(--paper);
}

.seal::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.45;
}

.seal .seal-mark {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
}

.seal .seal-caption {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-top: 4px;
    text-align: center;
    line-height: 1.4;
    padding: 0 14px;
}

.seal.on-navy { background: var(--navy-2); }
.seal.on-navy .seal-mark { color: var(--white); }

.seal-mini {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid var(--gold);
}

/* Corner-bracket accent — echoes a certification stamp corner */
.bracket {
    position: relative;
}

.bracket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

/* =========================================================
   Marquee — scrolling expertise strip
   ========================================================= */
.marquee-band {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-band .marquee-label {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding-right: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate);
    z-index: 2;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 26s linear infinite;
    padding-left: 220px;
}

.marquee-track span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--navy);
    margin: 0 30px;
}

.marquee-track span::after {
    content: '•';
    color: var(--gold);
    margin-left: 30px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* =========================================================
   Numbered credibility list
   ========================================================= */
.credibility-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 50px;
    max-width: 980px;
    margin: 0 auto;
}

.credibility-list li {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 15px;
    color: #D9E7F3;
}

.credibility-list .num {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-soft);
    letter-spacing: 1px;
    flex-shrink: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 2px;
}

.nav-center {
    display: flex;
    gap: 38px;
}

.nav-center a {
    color: var(--slate);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-center a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-center a:hover, .nav-center a.active {
    color: var(--navy);
}

.nav-center a:hover::after, .nav-center a.active::after {
    width: 100%;
}

.nav-button {
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 13px 28px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border: 1px solid var(--navy);
}

.nav-button:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    padding: 17px 34px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: 1.5px solid var(--navy);
}

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

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.section-navy .btn-outline,
.cta-band .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.section-navy .btn-outline:hover,
.cta-band .btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Credentials row (pills)
   ========================================================= */
.credentials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.credential-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    border: 1px solid var(--line-strong);
    padding: 9px 16px;
    background: var(--white);
}

.on-navy .credential-pill {
    color: var(--gold-soft);
    border-color: rgba(255,255,255,0.2);
    background: transparent;
}

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero {
    padding: 90px 0 0;
}

.hero-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 5% 100px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-text > p {
    font-size: 17px;
    color: var(--slate);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
}

.hero-frame {
    border: 1px solid var(--line-strong);
    padding: 16px;
    background: var(--white);
    position: relative;
}

.hero-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.hero-frame::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.hero-frame::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.hero-float-card {
    position: absolute;
    left: -30px;
    bottom: -30px;
    background: var(--navy);
    color: var(--white);
    padding: 22px 26px;
    max-width: 220px;
    box-shadow: 0 20px 40px rgba(11,31,58,0.25);
}

.hero-float-card h3 {
    color: var(--gold-soft);
    font-size: 30px;
    margin-bottom: 4px;
}

.hero-float-card p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #D9E7F3;
}

/* =========================================================
   Stat strip (navy band)
   ========================================================= */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-strip .stat {
    padding: 56px 40px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.stat-strip .stat:first-child { border-left: none; }

.stat-strip .stat h3 {
    font-size: 46px;
    color: var(--gold-soft);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stat-strip .stat p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #D9E7F3;
}

/* =========================================================
   Cards — generic
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 40px 34px;
    position: relative;
}

.card .seal-mini { margin-bottom: 22px; }

.card h3, .card h4 {
    font-size: 20px;
    margin-bottom: 14px;
}

.card p {
    font-size: 14.5px;
    color: var(--slate);
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
}

.card-link:hover { color: var(--gold); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    font-size: 34px;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

/* =========================================================
   Page header band (Profile / Services / Contact)
   ========================================================= */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 56px;
    text-align: center;
}

.page-header h1 {
    font-size: 44px;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--slate);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   Profile Page
   ========================================================= */
.profile-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
}

.profile-left { text-align: left; }

.image-wrapper {
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--line-strong);
    padding: 14px;
    background: var(--white);
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 26px;
    height: 26px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.profile-left h1 { font-size: 32px; margin-bottom: 6px; letter-spacing: -0.5px; }
.profile-left h2 {
    font-size: 15px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.profile-left .sub-role { font-size: 14px; color: var(--slate); margin-bottom: 18px; }

.profile-right p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--slate);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 46px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.stat-item { border-left: 2px solid var(--gold); padding-left: 20px; }
.stat-item h3 { font-size: 38px; line-height: 1; margin-bottom: 10px; letter-spacing: -1px; }
.stat-item h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.stat-item p { font-size: 13px; color: var(--slate); margin: 0; }

.affiliations {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.affiliations h5 {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slate);
    margin-bottom: 22px;
}

.affiliation-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.affiliation-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.affiliation-item p {
    font-size: 13.5px;
    color: var(--slate);
    margin: 0;
}

.affiliation-item strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

/* =========================================================
   Services Page
   ========================================================= */
.firm-section {
    background: var(--white);
    max-width: 1180px;
    margin: 0 auto 44px;
    padding: 60px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
}

.firm-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.firm-header .seal-mini {
    width: 54px;
    height: 54px;
    font-size: 16px;
    border-radius: 8px;
}

.firm-header h2 { font-size: 28px; line-height: 1.2; }
.firm-header h3 {
    font-size: 12.5px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 44px;
}

.service-item {
    padding-left: 20px;
    border-left: 2px solid var(--line-strong);
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
}
.service-item p { font-size: 14.5px; color: var(--slate); }

/* =========================================================
   Contact Page
   ========================================================= */
.contact-container {
    max-width: 1140px;
    margin: 90px auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--white);
    border: 1px solid var(--line);
}

.contact-info {
    background: var(--navy);
    color: var(--white);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-info .seal {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 220px;
    height: 220px;
    opacity: 0.08;
    border-color: var(--white);
}
.contact-info .seal::before { border-color: var(--white); }

.contact-info h2 { font-size: 32px; color: var(--white); margin-bottom: 10px; letter-spacing: -1px; }
.contact-info p.subtitle {
    color: var(--gold-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 48px;
    font-weight: 700;
    position: relative;
}

.info-block { margin-bottom: 32px; position: relative; }
.info-block h4 {
    font-size: 11px;
    color: var(--gold-soft);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.info-block p { font-size: 16px; color: #DEEBF5; }

.contact-form-wrapper {
    padding: 64px;
}

.contact-form-wrapper h3 { font-size: 28px; margin-bottom: 8px; letter-spacing: -0.5px; }
.contact-form-wrapper > p {
    color: var(--slate);
    font-size: 14px;
    margin-bottom: 40px;
}

.form-group { margin-bottom: 28px; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 2px;
    border: none;
    border-bottom: 1.5px solid var(--line-strong);
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    transition: border 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #A7ADB6; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; }

.submit-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 8px;
}

.submit-btn:hover { background: var(--gold); }

/* =========================================================
   Universal Footer
   ========================================================= */
footer {
    background: var(--navy);
    color: #CBDEEE;
    margin-top: auto;
    border-top: 4px solid var(--gold);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 5% 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.footer-brand .seal-mini {
    width: 46px;
    height: 46px;
    font-size: 15px;
    border-radius: 8px;
}

.footer-brand p { font-size: 14px; color: var(--white); font-weight: 700; }
.footer-tagline { color: #B6CFE4 !important; font-weight: 400 !important; font-size: 13px !important; max-width: 260px; }

.footer-col h5 {
    color: var(--gold-soft);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col a, .footer-col p {
    display: block;
    color: #CBDEEE;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.25s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 26px 5%;
    text-align: center;
    font-size: 13px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero-grid, .profile-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .hero-float-card { position: static; margin-top: 20px; max-width: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    nav { flex-direction: column; gap: 18px; padding: 20px; }
    .nav-center { flex-wrap: wrap; justify-content: center; gap: 18px; }
    .hero-text, .profile-left, .contact-info { text-align: center; }
    .hero-text > p { margin: 0 auto 35px; }
    .btn-group { justify-content: center; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-strip .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
    .stat-strip .stat:first-child { border-top: none; }
    .stats-container { grid-template-columns: 1fr; }
    .firm-section { padding: 40px 24px; }
    .firm-header { flex-direction: column; text-align: center; }
    .contact-info, .contact-form-wrapper { padding: 44px 28px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-tagline { max-width: none; }
    .credentials-row, .affiliation-row { justify-content: center; }
    .section-title { font-size: 30px; }
    .hero-text h1 { font-size: 38px; }
}